@font-face {
    font-family: paopao;
    src: url(../font/Paopao.ttf);
}

#canvas {
    display: block;
    margin: auto;
    box-shadow: 0 2px 5px rgba(0, 0,0, 0.3);
}

body {
    margin: 0;
    /*给body设置背景*/
    background: url(./images/bg1.jpg)no-repeat;
    background-size: 100% 100%;
    height: 100vh;
    font-family: paopao;
}

.restart , .start {

    position: absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%);
    color:burlywood;
    text-align: center;

    
    /*加一个定位*/
    position: absolute;
    top: 50%;
    left: 50%;



/*利用2d装换  把盒子的位置  再往左上方*/
    transform:translate(-50%, -50%);
    color:blueviolet;
    /*文本水平居中*/
    text-align: center;
}
.restart  h1 ,.start-btn{
    margin-top: 0;
    margin-bottom: 100px;
    font-size: 100px;

    margin-top: 0;
    margin-bottom: 100px;
    font-size: 50px;
}
.restart .restart-btn ,.start-btn{

    margin-top: 100;
    margin-bottom: 80px;

    width: 150px;
    height: 60px;
    background-color: red;
    color: #fff;


    
    

    /* 行高 */
    line-height: 60px;
    font-size: 20px;

    /* 圆角效果 */
    border-radius: 10px;

    /* 把鼠标指针变成手装 */
    cursor: pointer;
}

/* 鼠标悬浮效果 :hover */
.restart .restart-btn:hover{
    transform: translateY(-4px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}
.start-btn1{
    margin-top: 0;
    margin-bottom: 100px;
    font-size: 50px;

    width: 150px;
    height: 60px;
    background-color:  #3299CC;
    color:  #DB7093;
    line-height: 60px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
}

.start-btn2{
    margin-top: 0;
    margin-bottom: 100px;
    font-size: 50px;

    width: 150px;
    height: 60px;
    background-color:  #00FF7F;
    color: #4D4DFF;
    line-height: 60px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
}
.start-btn3{
    margin-top: 0;
    margin-bottom: 100px;
    font-size: 50px;
    width: 150px;
    height: 60px;
    background-color:  #CD7F32;
    color: #6F4242;
    line-height: 60px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
}
.restart-btn1{
    margin-top: 0;
    margin-bottom: 100px;
    font-size: 100px;
    width: 150px;
    height: 50px;
    background-color:  #CD7F32;
    color: #6F4242;
    line-height: 60px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
}


